<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_name" data-rule="required" class="form-control" name="row[organ_name]" type="text" value="{$row.organ_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_short_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_short_name" data-rule="required" class="form-control" name="row[organ_short_name]" type="text" value="{$row.organ_short_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-organ_image" class="form-control" size="50" name="row[organ_image]" type="text" value="{$row.organ_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-organ_image" class="btn btn-danger faupload" data-input-id="c-organ_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-organ_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-organ_image" class="btn btn-primary fachoose" data-input-id="c-organ_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-organ_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-organ_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_sn" data-rule="required" class="form-control" name="row[organ_sn]" type="text" value="{$row.organ_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_city')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-organ_city" data-rule="required" class="form-control" data-toggle="city-picker" name="row[organ_city]" type="text" value="{$row.organ_city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_address" data-rule="required" class="form-control" name="row[organ_address]" type="text" value="{$row.organ_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_linkman')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_linkman" data-rule="required" class="form-control" name="row[organ_linkman]" type="text" value="{$row.organ_linkman|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_phone" data-rule="required" class="form-control" name="row[organ_phone]" type="text" value="{$row.organ_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-organ_type" data-rule="required" class="form-control selectpicker" name="row[organ_type]">
                {foreach name="organTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.organ_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_tel" class="form-control" name="row[organ_tel]" type="text" value="{$row.organ_tel|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organ_email" class="form-control" name="row[organ_email]" type="text" value="{$row.organ_email|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_des')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-organ_des" class="form-control " rows="5" name="row[organ_des]" cols="50">{$row.organ_des|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pm_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pm_id" data-rule="required" data-source="pm/index" class="form-control selectpage" name="row[pm_id]" type="text" value="{$row.pm_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organ_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-organ_file" class="form-control" size="50" name="row[organ_file]" type="text" value="{$row.organ_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-organ_file" class="btn btn-danger faupload" data-input-id="c-organ_file" data-multiple="false" data-preview-id="p-organ_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-organ_file" class="btn btn-primary fachoose" data-input-id="c-organ_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-organ_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-organ_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Collaborate_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-collaborate_file" class="form-control" size="50" name="row[collaborate_file]" type="text" value="{$row.collaborate_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-collaborate_file" class="btn btn-danger faupload" data-input-id="c-collaborate_file" data-multiple="false" data-preview-id="p-collaborate_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-collaborate_file" class="btn btn-primary fachoose" data-input-id="c-collaborate_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-collaborate_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-collaborate_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50">{$row.remark|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-switch" name="row[switch]" type="hidden" value="{$row.switch}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
